Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix --color off not being respected in summary table #3212

Merged
merged 2 commits into from
Mar 14, 2024

Conversation

yardenshoham
Copy link
Contributor

We have to pass border: [] to disable colors on the table.

We have to pass `border: []` to disable colors on the table.

Signed-off-by: Yarden Shoham <git@yardenshoham.com>
Copy link
Member

@codenirvana codenirvana left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @yardenshoham!

Let's also update the test regex to /\u001b/.

const coloredOutput = /^[\u001b[0m]+newman/;

@yardenshoham
Copy link
Contributor Author

Hi @codenirvana, not sure I fully understand you. Do you suggest this?

- const coloredOutput = /^[\u001b[0m]+newman/; 
+ const coloredOutput = /\u001b/; 

@codenirvana
Copy link
Member

Yes.

We check for starting text instead of whether the <Escape> character exists.

Signed-off-by: Yarden Shoham <git@yardenshoham.com>
@codenirvana codenirvana merged commit cd81df4 into postmanlabs:develop Mar 14, 2024
2 checks passed
@yardenshoham yardenshoham deleted the issues/3169 branch March 14, 2024 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

“--color off” not woking after 6.0.0 upgrade
2 participants